import { ApiProperty } from "@nestjs/swagger";

export class InsertLetterImageDTO{
  @ApiProperty({ description: '图片base64数据' })
  readonly ImageData: string;
}

export class InsertLetterDTO{
  @ApiProperty({ description: '收件人' })
  readonly ToName: string;

  @ApiProperty({ description: '发件人' })
  readonly FromName: string;

  @ApiProperty({ description: '情书内容' })
  readonly Content: string;

  @ApiProperty({ description: '当前登录人ID' })
  readonly Author: number;
}

export class UpdateLetterDTO{
  @ApiProperty({ description: 'ID' })
  readonly SysID: string;

  @ApiProperty({ description: '收件人' })
  readonly ToName: string;

  @ApiProperty({ description: '发件人' })
  readonly FromName: string;

  @ApiProperty({ description: '情书内容' })
  readonly Content: string;

  @ApiProperty({ description: '当前登录人ID' })
  readonly Author: number;
}

export class DeleteLetterDTO{
  @ApiProperty({ description: 'ID' })
  readonly SysID: string;
}

export class GetUserLetterListDTO{
  @ApiProperty({ description: '类型(send/receive)' })
  readonly Type: string;

  @ApiProperty({ description: '用户ID' })
  readonly UserSysID: number;
}

export class GetLetterDetailDTO{
  @ApiProperty({ description: 'ID' })
  readonly SysID: string;

  @ApiProperty({ description: '用户ID' })
  readonly UserSysID: number;
}